package model

type AccountImportRequest struct {
	UserId   string `json:"UserID"`
	Nickname string `json:"Nick"`
	FaceUrl  string `json:"FaceUrl"`
}
type ParamsIm struct {
	Url string `json:"url"`
}
type ResponseIm struct {
	ActionStatus string `json:"ActionStatus"`
	ErrorCode    int    `json:"ErrorCode"`
	ErrorInfo    string `json:"ErrorInfo"`
}
type AccountImportRequests struct {
	AccountList *[]AccountImportRequest `json:"AccountList"`
}
type SendFromMsgRequest struct {
	ToUserId string `json:"to_user_id" binding:"required"  required_err:"参数缺失【to_user_id】"`
	MsgType  string `json:"msg_type" binding:"required"  required_err:"参数缺失【msg_type】"`
	Content  string `json:"content" binding:"required"  required_err:"参数缺失【content】"`
}
type AdminMsgWithdrawReq struct {
	MsgKey   string `json:"msg_key" binding:"required"  required_err:"参数缺失【msg_key】"`
	ToUserId string `json:"to_user_id" binding:"required"  required_err:"参数缺失【to_user_id】"`
}
type AdminMsgWithdrawSendReq struct {
	FromAccount string `json:"From_Account"`
	ToAccount   string `json:"To_Account"`
	MsgKey      string `json:"MsgKey"`
}
type CallbackBeforeSendMsgReq struct {
	CallbackCommand string `json:"CallbackCommand"`
	FromAccount     string `json:"From_Account"`
	ToAccount       string `json:"To_Account"`
	MsgSeq          int    `json:"MsgSeq"`
	MsgRandom       int    `json:"MsgRandom"`
	MsgTime         int    `json:"MsgTime"`
	MsgKey          string `json:"MsgKey"`
	MsgId           string `json:"MsgId"`
	OnlineOnlyFlag  int    `json:"OnlineOnlyFlag"`
	MsgBody         []struct {
		MsgType    string `json:"MsgType"`
		MsgContent struct {
			Text string `json:"Text"`
		} `json:"MsgContent"`
	} `json:"MsgBody"`
	CloudCustomData string `json:"CloudCustomData"`
	EventTime       int64  `json:"EventTime"`
}
type MsgContent struct {
	MsgType    string `json:"MsgType"`
	MsgContent struct {
		Text string `json:"Text"`
	} `json:"MsgContent"`
}
